import 'package:flutter/material.dart';

class ProductInfoPage extends StatefulWidget {
  final arguments;

  ProductInfoPage({this.arguments});

  @override
  _ProductInfoPageState createState() => _ProductInfoPageState();
}

class _ProductInfoPageState extends State<ProductInfoPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("商品详情"),
      ),
      body: Container(
        child: Text(
            '${widget.arguments != null ? widget.arguments['name'] : '苹果十二'}'),
      ),
    );
  }
}
